﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CookComputing.XmlRpc;

namespace JeanFish.Blog.XmlRpc
{
    /// <summary>
    /// 表示博文信息。
    /// </summary>
    [XmlRpcMissingMapping(MappingAction.Ignore)]
    public partial class Post
    {
        /// <summary>
        /// 创建时间。
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Error)]
        [XmlRpcMember("dateCreated", Description = "创建时间。")]
        public DateTime DateCreated
        {
            get;
            set;
        }
        /// <summary>
        /// 博文内容。
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Error)]
        [XmlRpcMember("description", Description = "博文内容。")]
        public string Description
        {
            get;
            set;
        }
        /// <summary>
        /// 博文标题。
        /// </summary>
        [XmlRpcMissingMapping(MappingAction.Error)]
        [XmlRpcMember("title", Description = "博文标题。")]
        public string Title
        {
            get;
            set;
        }
        /// <summary>
        /// 博文分类。
        /// </summary>
        [XmlRpcMember("categories")]
        public string[] Categories
        {
            get;
            set;
        }
        /// <summary>
        /// 博文包含的多媒体。
        /// </summary>
        [XmlRpcMember("enclosure")]
        public Enclosure Enclosure
        {
            get;
            set;
        }
        /// <summary>
        /// 博文链接地址。
        /// </summary>
        [XmlRpcMember("link")]
        public string Link
        {
            get;
            set;
        }
        /// <summary>
        /// 博文永久链接地址。
        /// </summary>
        [XmlRpcMember("permalink")]
        public string Permalink
        {
            get;
            set;
        }
        /// <summary>
        /// 博文编号。
        /// </summary>
        [XmlRpcMember("postid",Description = "博文编号。")]
        public object PostID
        {
            get;
            set;
        }
        /// <summary>
        /// 博文源。
        /// </summary>
        [XmlRpcMember("source")]
        public Source Source
        {
            get;
            set;
        }
        /// <summary>
        /// 用户编号。
        /// </summary>
        [XmlRpcMember("userid")]
        public string UserID
        {
            get;
            set;
        }
    }
}
